CPPFLAGS += -I/usr/include/python2.7 -pthread

CC := g++

SOURCE := $(wildcard *.cpp)

OBJS := $(patsubst %.cpp,%.o,$(SOURCE))

TARGET := rcappyfilt

all: $(TARGET)

clean:
	$(RM) *.o
	$(RM) $(TARGET)

$(TARGET): $(OBJS)
	$(CC) $(OBJS) -lpython2.7 -lpcap -pthread -o $(TARGET)

.PHONY: all clean
